﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace MINERP.DAL.PrintManage
{
    public class PaperWasteRecordDAL:DALBase
    {
        public static List<PaperWasteRecord> GetPaperWasteRecordList()
        {
            using (newSampleYPDBEntities Entities = new newSampleYPDBEntities())
            {
                return Entities.PaperWasteRecord.ToList();
            }
        }

        public static PaperWasteRecord GetPaperWasteRecordObj(int id)
        {
            using (newSampleYPDBEntities Entities = new newSampleYPDBEntities())
            {
                return Entities.PaperWasteRecord.First(p => p.PaperWasteRecordID == id);
            }
        }

        //public static PaperWasteRecord GetPaperWasteRecordObj(string name)
        //{
        //    return DataEntites.PaperWasteRecord.First(p => p.OperationName);
        //}
        
    }
}
